﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ManaMaple.DB.Entity
{
    /// <summary>
    /// 实体基础类
    /// </summary>
    public class BaseEntity
    {
        #region 属性
        /// <summary>
        /// 编号 
        /// </summary>
        [Column(IsPrimary = true, IsIdentity = true,Name = "Id")]
        public int Id { get; set; } = 0;
        /// <summary>
        /// 更新人
        /// </summary>
        [Column(Name = "Uptr")]
        public int Uptr { get; set; } = 0;
        /// <summary>
        /// 更新人名称
        /// </summary>
        [Column(Name = "UptrName")]
        public string UptrName { get; set; } = string.Empty;
        /// <summary>
        /// 更新时间
        /// </summary>
        [Column(Name = "UptDtt")]
        public DateTime UptDtt { get; set; } = DateTime.Now;
        /// <summary>
        /// 创建人
        /// </summary>
        [Column(Name = "Crea")]
        public int Crea { get; set; } = 0;
        /// <summary>
        /// 更新人名称
        /// </summary>
        [Column(Name = "CreaName")]
        public string CreaName { get; set; } = string.Empty;
        /// <summary>
        ///创建时间
        /// </summary>
        [Column(Name = "CreaDtt")]
        public DateTime CreaDtt { get; set; } = DateTime.Now;
        #endregion
    }
}
